package com.property.manage.model.flowingWater;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author lwb
 * 2021-01-18 2021-01-18
 */
@Data
@ApiModel("月统计")
public class MonthStatisticVo {

    private Integer totalRooms;

    private BigDecimal totalShouldPay;

    private BigDecimal totalPayed;

    private BigDecimal totalDeduction;

    private BigDecimal totalOwn;

    private List<Detail> details;

    /**
     * 总欠费补缴
     */
    private BigDecimal totalOwnPayment;

    /**
     * 总常规收款
     */
    private BigDecimal totalNormalPayment;

    /**
     * 总欠费减免额度
     */
    private BigDecimal totalOwnDeduction;

    @Data
    public static class Detail{

        @ApiModelProperty("楼栋")
        private Integer building;

        @ApiModelProperty("单元")
        private Integer unit;

        @ApiModelProperty("户数")
        private Integer rooms;

        @ApiModelProperty("应收款")
        private BigDecimal shouldPay;

        @ApiModelProperty("已收款")
        private BigDecimal payed;

        @ApiModelProperty("已减免")
        private BigDecimal deduction;

        @ApiModelProperty("欠费款")
        private BigDecimal own;

        /**
         * 欠费补缴
         */
        private BigDecimal ownPayment;

        /**
         * 常规收款
         */
        private BigDecimal normalPayment;

        /**
         * 欠费减免额度
         */
        private BigDecimal ownDeduction;


    }


}
